package com.songhuan.web.dto;
import com.songhuan.web.entity.Enums;
import com.songhuan.web.tools.dto.BaseDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 补卡记录类
 */
@Data
public class ReCheckDto extends BaseDto
{

    /**
     * 补卡开始时间
     */     
     
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("BeginTime")
    private LocalDateTime BeginTime;             
    /**
     * 班级
     */     
     
    @JsonProperty("OrganizationId")
    private Integer OrganizationId;          
    /**
     * 用户
     */     
     
    @JsonProperty("UserId")
    private Integer UserId;          
    /**
     * 申请原因
     */     
     
    @JsonProperty("Reason")
    private String Reason;
    /**
     * 回复内容
     */     
     
    @JsonProperty("Reply")
    private String Reply;
    /**
     * 审核人
     */     
     
    @JsonProperty("AuditUserId")
    private Integer AuditUserId;          
    /**
     * 审核状态
     */     
     
    @JsonProperty("AuditStatus")
    private Integer AuditStatus;    
    
    public String getAuditStatusFormat() {
        return Enums.AuditStatus.GetEnum(AuditStatus).toString();
    }
    
    private String AuditStatusFormat;
    
    /**
     * 补卡结束时间
     */     
     
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("EndTime")
    private LocalDateTime EndTime;             

     @JsonProperty("OrganizationDto") 
    private OrganizationDto OrganizationDto;                        
   
     @JsonProperty("UserDto") 
    private AppUserDto UserDto;                        
   
     @JsonProperty("AuditUserDto") 
    private AppUserDto AuditUserDto;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("SelectDate")
    private LocalDate SelectDate;

}
